module.exports = {
  devServer: {
    // proxy: 'http://www.baidu.com'
    proxy: { // http://www.baidu.com/pro/list
      '/api': {
        target: 'http://www.baidu.com',
        ws: true,
        pathReWrite: { // /api/pro/list
          '^/api': ''
        }
      },
      '/test': {// http://www.test.com/pro/list
        target: 'http://www.test.com',
        ws: true,
        pathReWrite: { // /test/pro/list
          '^/test': ''
        }
      }
    }
  }
}
